﻿/// <reference path="../Libraries/jasmine/jasmine.d.ts" />
/// <reference path="../Jasmine.ts" />

describe('ExtSpec.Jasmine', function () {
    'use strict';

    var esj = ExtSpec.Jasmine;

    describe('spyOnNamespace', function () {
        var target;

        beforeEach(function () {
            target = {};
            spyOn(ExtSpec, 'ensureNamespace').and.returnValue(target);
        });

        it('should always call ensureNamespace', function () {
            esj.spyOnNamespace(undefined, []);

            expect(ExtSpec.ensureNamespace).toHaveBeenCalled();
        });
    });
});